//进行中

import { baseApi, baseApp } from '@/server/base'

export default [
  /**
   * 获取进行中
   * @param params
   * @returns
   */
  {
    url: `${baseApi}/api/apk/tasks/running`,
    type: 'get',
    response: () => {
      return {
        code: 200,
        data: [
          {
            id: '20',
            received_by: '441343',
            received_at: '2022-12-21 08:40:00',
            completed_by: null,
            completed_at: null,
            canceled_by: null,
            canceled_at: null,
            updated_at: '2022-12-21 08:40:00',
            cell: 'SUZAMDASLT100',
            machine: 'ASLT100',
            short: 'ASLT100',
            block: 'B2',
            type: 'JAM',
            prod: null,
            created_by: null,
            urgent: 1,
            tag: null,
            state: 2,
            created_at: '2022-12-21 07:40:00',
            contents: {
              id: '215',
              jam: 'No 4  Tester socket IC put jam',
              category: 'Position',
              qty: '23',
              days: '1',
              rate: '1.92',
              goal: null,
              gth_goal: '1.92'
            }
          }
        ],
        msg: ''
      }
    }
  },
  /**
   * Jam Rent
   * @param code
   * @returns
   */
  {
    url: `${baseApi}/api/apk/mcrs/jam/rent/1`,
    type: 'get',
    response: () => {
      return {
        code: 200,
        data: [
          {
            id: '30',
            received_by: '441343',
            received_at: '2022-12-21 08:40:00',
            completed_by: null,
            completed_at: null,
            canceled_by: null,
            canceled_at: null,
            updated_at: '2022-12-21 08:40:00',
            cell: 'SUZAMDASLT100',
            machine: 'ASLT100',
            block: 'B2',
            type: 'JAM',
            prod: null,
            created_by: null,
            urgent: 1,
            tag: null,
            state: 2,
            created_at: '2022-12-21 07:40:00'
          }
        ],
        msg: ''
      }
    }
  }
]
